interface Person {
    name:string;
    age:number
}

function greeter(person: Person){
    return `Hello ${person.name} : ${person.age}`
}

let user = {name:'fack',age:10}
console.log(greeter(user))